package com.xly.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/** 
* @author Your-Name: Carey
* @version Create-Date：2020年3月11日 下午3:24:56 
* Class Description:
*/
public class UserInfo extends Model<UserInfo>{
	
	@TableId
	private int id;
	private String username;//用户名
	private String password;//密码
	private int roleId;//角色 1.超级管理员 2.普通用户 3.医生 4.护士
	private String phone;//手机号
	private String validatecode;//验证码
	private String cid;//身份证号
	private Date datetime;//出生日期
	private String gender;//性别 0.女 1.男
	private String frontImg;//身份证正面照
	private String backImg;//身份证反面照
	private String address;//住址
	private String bedno;//病床号
	private int departmentId;//科室id
	private int doctorId;//主治医生id
	private int nurseId;//责任护士id
	private int inStatus;//住院状态 1.未住院 2.预住院 3.住院中 4.已出院
	private int state;//启用状态 0.禁用 1.启用
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
	
	public UserInfo() {
		super();
	}
	public UserInfo(int id, String username, String password, int roleId, String phone, String validatecode, String cid,
			Date datetime, String gender, String frontImg, String backImg, String address, String bedno,
			int departmentId, int doctorId, int nurseId, int inStatus, int state) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.roleId = roleId;
		this.phone = phone;
		this.validatecode = validatecode;
		this.cid = cid;
		this.datetime = datetime;
		this.gender = gender;
		this.frontImg = frontImg;
		this.backImg = backImg;
		this.address = address;
		this.bedno = bedno;
		this.departmentId = departmentId;
		this.doctorId = doctorId;
		this.nurseId = nurseId;
		this.inStatus = inStatus;
		this.state = state;
	}
	@Override
	public String toString() {
		return "Userinfo [id=" + id + ", username=" + username + ", password=" + password + ", roleId=" + roleId
				+ ", phone=" + phone + ", validatecode=" + validatecode + ", cid=" + cid + ", datetime=" + datetime
				+ ", gender=" + gender + ", frontImg=" + frontImg + ", backImg=" + backImg + ", address=" + address
				+ ", bedno=" + bedno + ", departmentId=" + departmentId + ", doctorId=" + doctorId + ", nurseId="
				+ nurseId + ", inStatus=" + inStatus + ", state=" + state + "]";
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getValidatecode() {
		return validatecode;
	}
	public void setValidatecode(String validatecode) {
		this.validatecode = validatecode;
	}
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public Date getDatetime() {
		return datetime;
	}
	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getFrontImg() {
		return frontImg;
	}
	public void setFrontImg(String frontImg) {
		this.frontImg = frontImg;
	}
	public String getBackImg() {
		return backImg;
	}
	public void setBackImg(String backImg) {
		this.backImg = backImg;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getBedno() {
		return bedno;
	}
	public void setBedno(String bedno) {
		this.bedno = bedno;
	}
	public int getDepartmentId() {
		return departmentId;
	}
	public void setDepartmentId(int departmentId) {
		this.departmentId = departmentId;
	}
	public int getDoctorId() {
		return doctorId;
	}
	public void setDoctorId(int doctorId) {
		this.doctorId = doctorId;
	}
	public int getNurseId() {
		return nurseId;
	}
	public void setNurseId(int nurseId) {
		this.nurseId = nurseId;
	}
	public int getInStatus() {
		return inStatus;
	}
	public void setInStatus(int inStatus) {
		this.inStatus = inStatus;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}


}
